package com.book.warehouse.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @Author: 刘恬镯
 * @Description: 20174052
 */

@Data
@Accessors(chain = true)
@Excel("仓库详情表")
@TableName("warehouse_book")
public class WarehouseBook {
    @TableId(value = "warehouseid", type = IdType.AUTO)
    private Integer warehouseid;

    @TableField("bookid")
    private Integer bookid;

    @TableField(exist = false)
    @ExcelField(value = "仓库名称")
    private String housename;

    @TableField("bookname")
    @ExcelField(value = "书籍名称")
    private String bookname;

    @TableField("type")
    @ExcelField(value = "书籍类型")
    private String type;

    @TableField("purchasefactory")
    @ExcelField(value = "出版社")
    private String purchasefactory;

    @TableField("bookmoney")
    @ExcelField(value = "书籍单价")
    private Integer bookmoney;

    @TableField("number")
    @ExcelField(value = "图书数量")
    private Integer number;

    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private Date createtime;

    @TableField("flag")
    private String flag;

    @TableField("status")
    private String status;

    @TableField("intoware")
    private String intoware;

    @TableField("putaway")
    private String putaway;

    @TableField("warningnumber")
    private Integer warningnumber;

    @TableField("warningstatus")
    private String warningstatus;

    @TableField(exist = false)
    private Integer houseid;
}
